package cn.cheln.explorer.cpnt.adapter;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import cn.cheln.explorer.beans.FileInfo;
import cn.cheln.support.images.FileIconHelper;
import cn.cheln.support.ui.adapter.MapAdapter;
import cn.cheln.support.ui.adapter.MapAdapter.AdaptInfo;

public class ThumbnailAdapter extends MapAdapter
{
  public FileIconHelper fileIconHelper;
  int iconViewId = -1;

  public ThumbnailAdapter(Context paramContext, MapAdapter.AdaptInfo paramAdaptInfo)
  {
    super(paramContext, paramAdaptInfo);
    this.fileIconHelper = new FileIconHelper(paramContext);
  }

  protected void findAndBindView(View paramView, int paramInt, Object paramObject1, String paramString, Object paramObject2)
  {
    if ((paramString.equals("iconRes")) && (paramObject2.toString().equals("-1")))
    {
      if (this.iconViewId == -1)
        this.iconViewId = this.viewsid[this.fieldnames.indexOf(paramString)];
      this.fileIconHelper.setIcon(getThumbnailBase((FileInfo)paramObject1), (ImageView)paramView.findViewById(this.iconViewId));
    }
    super.findAndBindView(paramView, paramInt, paramObject1, paramString, paramObject2);
  }

  protected FileInfo getThumbnailBase(FileInfo paramFileInfo)
  {
    return paramFileInfo;
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     cn.cheln.explorer.cpnt.adapter.ThumbnailAdapter
 * JD-Core Version:    0.5.2
 */